<?php
namespace app\send\logic\msg;
use app\send\logic\msg\Msg;
use \think\Config;
/**
 * 云片短信
 */
class YunpianMsg extends Msg
{
    /**
     * [发送验证码]
     * @param  [type] $phone [手机号]
     * @param  [type] $code  [验证码]
     * @return [type]        [description]
     */
	public function index($phone,$code){
        header("Content-Type:text/html;charset=utf-8");
        vendor("send.yunpian.Yunpian");
        $msg = new \Yunpian();
        $config = Config::get('yunpiancode');
        $text="【".$config['sign']."】您的验证码是".$code;
        return $msg->index($config['apikey'],$phone,$text);
     
    }
}

